package com.sky.mapper;

import com.sky.vo.BusinessDataVO;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Mapper
public interface ReportMapper {

    List<Map<String, Object>> selectStatisticsBetweenOrderTime(LocalDate begin, LocalDate end);

    List<Map<String, Object>> selectStatisticsBetweenCreateTime(LocalDate begin, LocalDate end);

    List<Map<String, Object>> selectordersStatisticsBetweenCreateTime(LocalDate begin, LocalDate end);

    List<Map<String, Object>> top10(LocalDate begin, LocalDate end);

    BusinessDataVO selecttBusinessDataVO(LocalDate begin, LocalDate end);

    Double selectTurnover(LocalDate begin, LocalDate end);

    Integer selectValidOrderCount(LocalDate begin, LocalDate end);

    Double selectOrderCompletionRate(LocalDate begin, LocalDate end);

    Double selectUnitPrice(LocalDate begin, LocalDate end);

    Integer selectNewUsers(LocalDate begin, LocalDate end);

    List<BusinessDataVO> selectBusinessDataVOWithDay(LocalDate begin, LocalDate end);
}
